package ar.Location.DataObject;

import java.util.ArrayList;

import ar.Location.Constant.Define;

public class ListDataSources {
	
	ArrayList<DataSource> listDataSources = null;
	public int nDataSources = 0;
	
	public ListDataSources() {
		listDataSources = new ArrayList<DataSource>();
		initListFunctions();
	}
	
	public DataSource dataSource(int index) {
		return (DataSource)(listDataSources.get(index));
	}
	
	public void initListFunctions() {
		nDataSources = 5;
		for(int i = 0; i < nDataSources; i ++) {
			DataSource dataSource = new DataSource(Define.listDataSourceNames[i], "Description " + (i + 1), Define.listDataSourceIcons[i], true);
			listDataSources.add(dataSource);
		}
	}
}
